package jdbc;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class JdbcTest2 {
    public static void main(String[] args) throws SQLException {
        Connection con=MyJDBCUtil.getConnection();
        Statement st;
        st = con.createStatement();
        String sql="select * from user";
        ResultSet rs=st.executeQuery(sql);
        while (rs.next()){
            System.out.println(rs.getString(2));
            System.out.println(rs.getString(3));
        }
    }
}
